<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="活动名称" ng-model="ctrlScope.itemsearch.activeName">
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">
        </div>
    </div>
    <!--<div class="coll-md-2">-->
        <!--<input type="button" class="bttn pos-right"  ng-click="addOrderModal()" value="新建">-->
    <!--</div>-->
</div>
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>活动</th>
        <th>物品名称</th>
        <th>概率</th>
        <th>是否是最差奖励</th>
        <th>是否是实物</th>
        <th>数量</th>
        <th>奖励类型</th>
        <th>红包金额</th>
        <th>加息券利率</th>
        <th>投资标的天数</th>
        <th>加息券效果天数</th>
        <th>要求使用的金额</th>
        <!--<th>操作</th>-->

    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.activeName}}</td>
        <td>{{item.goodsName}}</td>
        <td>{{item.goodsRate|percentUnit}}</td>
        <td>{{item.isLast |isLast}}</td>
        <td>{{item.isRealObject | isRealObject}}</td>
        <td>{{item.number}}</td>
        <td>{{item.wardType |wardType}}</td>
        <td>{{item.amount|moneyUnit}}</td>
        <td>{{item.rate|percentUnit}}</td>
        <td>{{item.scope|dateUnit}}</td>
        <td>{{item.usefulLife|dateUnit}}</td>
        <td>{{item.requireAmount|moneyUnit}}</td>
        <!--<td><a ng-click="modifyReward()">修改</a></td>-->
    </tr>
    </tbody>
</table>
<modal title="修改" visible="modifyModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="saveSubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">概率：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.username" required>
                        </div>
                    </div>
                </div>
                <!--<div class="col-md-6">-->
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-4">优惠券类型：</label>-->
                        <!--<div class="col-md-8 triangle-left">-->
                            <!--<select ng-model="add.couponType" class="form-control" required ui-select2="select2Options">-->
                                <!--<option value="" disabled hidden selected>请选择</option>-->
                                <!--<option value="1">红包</option>-->
                                <!--<option value="2">加息券</option>-->
                                <!--<option value="3">代金券</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <input type="hidden" value='1' ng-model="add.couponType">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">途径：</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.way" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">金额：</label>

                        <div class="col-md-8 yuan">
                            <input type="number" class="form-control" ng-model="add.amount" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">使用条件金额：</label>

                        <div class="col-md-8 yuan">
                            <input type="number" class="form-control" ng-model="add.requireAmount" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">有效时间：</label>
                        <div class="col-md-8">
                            <p class="input-group inline">
                                <input type="text" class="form-control" placeholder="有效时间" uib-datepicker-popup="yyyy-MM-dd"
                                       ng-model="add.expiredTime"  is-open="popup3.opened" datepicker-options="dateOptions"/>
						                <span class="input-group-btn" required>
							            <button type="button" class="btn btn-default" ng-click="open3()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							            </span>
                            </p>
                        </div>

                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">保存</button>
            </div>

        </div>
    </form>
</modal>
